package com.itfreer.power.dao.jurisdiction;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.springframework.beans.BeanUtils;

import com.itfreer.form.api.JdbcBaseEntity;
import com.itfreer.power.dao.base.JdbcEntityBase;
import com.itfreer.power.entity.jurisdiction.RegisterServiceEntity;

/**
 * 菜单权限实体
 */
@Entity(name = "sso_jurisdiction_service")
public class JdbcRegisterServiceEntity extends JdbcEntityBase implements JdbcBaseEntity<RegisterServiceEntity> {

	private static final long serialVersionUID = 2638817081794030611L;
	
	/**
	 * id值，主键，唯一值
	 * 系统应用中必需关联此值
	 */
	@Column(name = "s_url", length = 200, nullable = true)
	private String url;
	
	/**
	 * 单点登录的注册服务ID
	 */
	@Column(name = "i_ssoid")
	private Long ssoid;
	
	/**
	 * 接口访问码
	 */
	@Column(name = "s_ifprovide", length = 100, nullable = true)
	private String ifprovide;
	
	/**
	 * 接口访问权限
	 */
	@Column(name = "s_ifpower", length = 200, nullable = true)
	private String ifpower;

	/**
	 * 系统图片
	 */
	@Column(name = "s_syspic" ,length=200, nullable = true)
	private String syspic;
	
	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public Long getSsoid() {
		return ssoid;
	}

	public void setSsoid(Long ssoid) {
		this.ssoid = ssoid;
	}
	
	public String getIfprovide() {
		return ifprovide;
	}

	public void setIfprovide(String ifprovide) {
		this.ifprovide = ifprovide;
	}

	public String getIfpower() {
		return ifpower;
	}

	public void setIfpower(String ifpower) {
		this.ifpower = ifpower;
	}
	
	public String getSyspic() {
		return syspic;
	}

	public void setSyspic(String syspic) {
		this.syspic = syspic;
	}

	@Override
	public void from(RegisterServiceEntity t) {
		BeanUtils.copyProperties(t, this);
	}

	@Override
	public RegisterServiceEntity toEntity() {
		RegisterServiceEntity toEntity = new RegisterServiceEntity();
		BeanUtils.copyProperties(this, toEntity);
		return toEntity;
	}
}
